github.com/gotd/td/telegram.Client.ctx (field)

20 uses

	github.com/gotd/td/telegram (current package)
		client.go#L111: 	ctx    context.Context
		connect.go#L102: 	if c.ctx != nil {
		connect.go#L104: 		case <-c.ctx.Done():
		connect.go#L105: 			return errors.Wrap(c.ctx.Err(), "client already closed")
		connect.go#L112: 	c.ctx, c.cancel = context.WithCancel(ctx)
		connect.go#L141: 		case <-c.ctx.Done():
		connect.go#L142: 			return c.ctx.Err()
		handle_updates.go#L18: 			c.fetchConfig(c.ctx)
		handle_updates.go#L27: 		return c.updateHandler.Handle(c.ctx, u)
		handle_updates.go#L30: 		return c.updateHandler.Handle(c.ctx, u)
		handle_updates.go#L33: 		return c.updateHandler.Handle(c.ctx, u)
		handle_updates.go#L35: 		return c.updateHandler.Handle(c.ctx, upconv.ShortMessage(u))
		handle_updates.go#L37: 		return c.updateHandler.Handle(c.ctx, upconv.ShortChatMessage(u))
		handle_updates.go#L39: 		return c.updateHandler.Handle(c.ctx, upconv.ShortSentMessage(u))
		handle_updates.go#L41: 		return c.updateHandler.Handle(c.ctx, u)
		pool.go#L26: 	case <-c.ctx.Done():
		pool.go#L27: 		return nil, errors.Wrap(c.ctx.Err(), "client already closed")
		pool.go#L31: 	p := pool.NewDC(c.ctx, dc, creator, pool.DCOptions{
		session.go#L68: 	data, err := c.storage.Load(c.ctx)
		session.go#L85: 	if err := c.storage.Save(c.ctx, data); err != nil {